from flask import Blueprint, request, jsonify
import logging, os
from utils import common
sms_bp = Blueprint('sms', __name__, url_prefix='/sms')


@sms_bp.route('/code', methods=['POST'])
def send_code():
    # TODO 发送验证码

    return jsonify({'code':0})



@sms_bp.record
def log(app):
    logging.info('register sms blueprint')
